import request from '@/utils/request'

// 查询GIS管网-图层列表
export function listGisLayerTree(query) {
  return request({
    url: '/swla2/gisLayer/listTree',
    method: 'get',
    params: query
  })
}

// 查询GIS管网-图层列表
export function listGisLayer(query) {
  return request({
    url: '/swla2/gisLayer/list',
    method: 'get',
    params: query
  })
}

// 查询GIS管网-图层详细
export function getGisLayer(id) {
  return request({
    url: '/swla2/gisLayer/' + id,
    method: 'get'
  })
}

// 新增GIS管网-图层
export function addGisLayer(data) {
  return request({
    url: '/swla2/gisLayer',
    method: 'post',
    data: data
  })
}

// 修改GIS管网-图层
export function updateGisLayer(data) {
  return request({
    url: '/swla2/gisLayer',
    method: 'put',
    data: data
  })
}

// 删除GIS管网-图层
export function delGisLayer(id) {
  return request({
    url: '/swla2/gisLayer/' + id,
    method: 'delete'
  })
}
